home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
telecomm
/
bbsxdemo.lzh
/
MENUS_80
/
F8.SCR
< prev
next >
Wrap
Text File
|
1993-02-28
|
4KB
|
153 lines
SCRIPT
DEFINE User_input
DEFINE Start_time
DEFINE Count
SET Start_time = &34
PRINTE
DUMP
=========================================================================
You may be wondering about the Function Keys and what they can do for
you. BBS Express! ST which we will refer to from now on as Express
allows you to define the F6, F7, F8 and F9 keys to run Script Files, or
Menu files. This DEMO has been set up with the Function Keys F6, F7 and
F8 set up as:
Order Entry Utilities
Other Utilities
These Function Keys?
The definitions may be seen in the file "FUNCTION.DAT". The F6 key
executes the file named F6.COM in the path D:\BBSXDEMO\MENUS_80\. It is
written in the Express Script Language and then compiled. The original
Source file is named ORDUTIL.SCR and is located in D:\BBSXDEMO\OE\. Also
a related file OE.SCR is the Source file of OE.COM, which you execute
from the Main Menu from the "[D] Demo of our Ordering System" command.
=========================================================================
END
GOSUB Get_input
DUMP
=========================================================================
Well, we got off the subject a bit. The F7 key runs a Script file which
in turn allows you to set some parameters and run some External Programs.
These External programs are commonly called "Doors", they can be a vast
variety of files. Look over the file F7.SCR located in the path
D:\BBSXDEMO\MENUS_80\. It is another example of a Script Language file.
In this case it is not compiled for your viewing ease. Compiling Script
files makes them smaller and run faster. It also allows you to create
larger Scripts.
=========================================================================
END
GOSUB Get_input
DUMP
=========================================================================
The F8 key runs the Script file which is doing this demo. There are a
variety of methods to show users information... This Demo is file
F8.SCR also located in what is refered to as the MENUS_80 folder.
Go to the next page to see a small example of Script...
=========================================================================
END
GOSUB Get_input
PRINT ' '
FOR Count = 1 to 73
PRINT '='
ENDFOR
PRINTE
PRINTE
PRINTE
PRINTE
PRINTE ' You began reading this at [Start_time] and it is now &34 hours,'
PRINTE ' (or if you prefer 12 hour time, &23)'.
PRINTE
PRINTE
DEFINE The_string
DEFINE Character_to_print
DEFINE Character_number
PRINT ' '
SET The_string = 'Express is VERY powerful...'
Character_number = 1
String_it_out_:
Character_to_print = COPY (The_string, Character_number, 1)
IF Character_number > 27 THEN
GOTO End_this_
ENDIF
PRINT Character_to_print
GOSUB Delay
BACKSPACE (1)
GOSUB Delay
PRINT ' '
GOSUB Delay
BACKSPACE (1)
GOSUB Delay
PRINT Character_to_print
INCREASE Character_number (1)
GOTO String_it_out_:
End_this_:
FOR Count = 1 to 10
PRINTE
ENDFOR
PRINT ' '
FOR Count = 1 to 73
PRINT '='
ENDFOR
PRINTE 'The End... Press any key to Exit' CENTER
GET_KEY User_input
EXIT
Get_input:
PRINTE 'Continue Y/n' CENTER
GET_KEY User_input
If User_input = N
EXIT
ENDIF
RETURN
Delay:
FOR Count = 1 to 2
ENDFOR
RETURN